﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CallDS" targetNamespace="http://tempuri.org/CallDS.xsd" xmlns:mstns="http://tempuri.org/CallDS.xsd" xmlns="http://tempuri.org/CallDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="UcConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="UcConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.UCENTRIK.Properties.Settings.GlobalReference.Default.UcConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CallDSTableAdapter" GeneratorDataComponentClassName="CallDSTableAdapter" Name="CallDS" UserDataComponentName="CallDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_call_select" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_call_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@call_guid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="call_guid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@from_contact_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="from_contact_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@to_contact_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="to_contact_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_call_select</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@call_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="call_id" DataSetColumn="call_id" />
              <Mapping SourceColumn="call_guid" DataSetColumn="call_guid" />
              <Mapping SourceColumn="from_contact_id" DataSetColumn="from_contact_id" />
              <Mapping SourceColumn="to_contact_id" DataSetColumn="to_contact_id" />
              <Mapping SourceColumn="date_created" DataSetColumn="date_created" />
              <Mapping SourceColumn="date_open" DataSetColumn="date_open" />
              <Mapping SourceColumn="date_closed" DataSetColumn="date_closed" />
              <Mapping SourceColumn="date_updated" DataSetColumn="date_updated" />
              <Mapping SourceColumn="date_deleted" DataSetColumn="date_deleted" />
              <Mapping SourceColumn="to_first_name" DataSetColumn="to_first_name" />
              <Mapping SourceColumn="to_last_name" DataSetColumn="to_last_name" />
              <Mapping SourceColumn="status_id" DataSetColumn="status_id" />
              <Mapping SourceColumn="from_first_name" DataSetColumn="from_first_name" />
              <Mapping SourceColumn="from_last_name" DataSetColumn="from_last_name" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_call_get_all" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetCallsAll" GetMethodModifier="Public" GetMethodName="GetCallsAll" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetCallsAll" UserSourceName="GetCallsAll">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_call_get_all</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@from_contact_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@to_contact_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@status_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_call_select_by_contact" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetCallsByContact" GetMethodModifier="Public" GetMethodName="GetCallsByContact" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetCallsByContact" UserSourceName="GetCallsByContact">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_call_select_by_contact</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@contact_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_call_select_by_status" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetCallsByStatus" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetCallsByStatus" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetCallsByStatus" UserSourceName="GetCallsByStatus">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_call_select_by_status</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@status_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_call_insert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="InsertCall" Modifier="Public" Name="InsertCall" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertCall">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_call_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@call_guid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@from_contact_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@to_contact_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CallDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="CallDS" msprop:Generator_DataSetName="CallDS" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="CallDS" msprop:Generator_UserTableName="CallDS" msprop:Generator_RowDeletedName="CallDSRowDeleted" msprop:Generator_RowChangedName="CallDSRowChanged" msprop:Generator_RowClassName="CallDSRow" msprop:Generator_RowChangingName="CallDSRowChanging" msprop:Generator_RowEvArgName="CallDSRowChangeEvent" msprop:Generator_RowEvHandlerName="CallDSRowChangeEventHandler" msprop:Generator_TableClassName="CallDSDataTable" msprop:Generator_TableVarName="tableCallDS" msprop:Generator_RowDeletingName="CallDSRowDeleting" msprop:Generator_TablePropName="_CallDS">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="call_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="call_id" msprop:Generator_ColumnVarNameInTable="columncall_id" msprop:Generator_ColumnPropNameInRow="call_id" msprop:Generator_ColumnPropNameInTable="call_idColumn" type="xs:int" />
              <xs:element name="call_guid" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_UserColumnName="call_guid" msprop:Generator_ColumnVarNameInTable="columncall_guid" msprop:Generator_ColumnPropNameInRow="call_guid" msprop:Generator_ColumnPropNameInTable="call_guidColumn" type="xs:string" />
              <xs:element name="from_contact_id" msprop:Generator_UserColumnName="from_contact_id" msprop:Generator_ColumnVarNameInTable="columnfrom_contact_id" msprop:Generator_ColumnPropNameInRow="from_contact_id" msprop:Generator_ColumnPropNameInTable="from_contact_idColumn" type="xs:int" />
              <xs:element name="to_contact_id" msprop:Generator_UserColumnName="to_contact_id" msprop:Generator_ColumnVarNameInTable="columnto_contact_id" msprop:Generator_ColumnPropNameInRow="to_contact_id" msprop:Generator_ColumnPropNameInTable="to_contact_idColumn" type="xs:int" />
              <xs:element name="date_created" msprop:Generator_UserColumnName="date_created" msprop:Generator_ColumnPropNameInRow="date_created" msprop:Generator_ColumnVarNameInTable="columndate_created" msprop:Generator_ColumnPropNameInTable="date_createdColumn" type="xs:dateTime" />
              <xs:element name="date_open" msprop:Generator_UserColumnName="date_open" msprop:Generator_ColumnPropNameInRow="date_open" msprop:Generator_ColumnVarNameInTable="columndate_open" msprop:Generator_ColumnPropNameInTable="date_openColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="date_closed" msprop:Generator_UserColumnName="date_closed" msprop:Generator_ColumnPropNameInRow="date_closed" msprop:Generator_ColumnVarNameInTable="columndate_closed" msprop:Generator_ColumnPropNameInTable="date_closedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="date_updated" msprop:Generator_UserColumnName="date_updated" msprop:Generator_ColumnPropNameInRow="date_updated" msprop:Generator_ColumnVarNameInTable="columndate_updated" msprop:Generator_ColumnPropNameInTable="date_updatedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="date_deleted" msprop:Generator_UserColumnName="date_deleted" msprop:Generator_ColumnPropNameInRow="date_deleted" msprop:Generator_ColumnVarNameInTable="columndate_deleted" msprop:Generator_ColumnPropNameInTable="date_deletedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="to_first_name" msprop:Generator_UserColumnName="to_first_name" msprop:Generator_ColumnVarNameInTable="columnto_first_name" msprop:Generator_ColumnPropNameInRow="to_first_name" msprop:Generator_ColumnPropNameInTable="to_first_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="to_last_name" msprop:Generator_UserColumnName="to_last_name" msprop:Generator_ColumnVarNameInTable="columnto_last_name" msprop:Generator_ColumnPropNameInRow="to_last_name" msprop:Generator_ColumnPropNameInTable="to_last_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="status_id" msprop:Generator_UserColumnName="status_id" msprop:Generator_ColumnPropNameInRow="status_id" msprop:Generator_ColumnVarNameInTable="columnstatus_id" msprop:Generator_ColumnPropNameInTable="status_idColumn" type="xs:int" />
              <xs:element name="from_first_name" msprop:Generator_UserColumnName="from_first_name" msprop:Generator_ColumnPropNameInRow="from_first_name" msprop:Generator_ColumnVarNameInTable="columnfrom_first_name" msprop:Generator_ColumnPropNameInTable="from_first_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="from_last_name" msprop:Generator_UserColumnName="from_last_name" msprop:Generator_ColumnPropNameInRow="from_last_name" msprop:Generator_ColumnVarNameInTable="columnfrom_last_name" msprop:Generator_ColumnPropNameInTable="from_last_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="from_full_name" msprop:Generator_UserColumnName="from_full_name" msprop:Generator_ColumnPropNameInRow="from_full_name" msprop:Generator_ColumnVarNameInTable="columnfrom_full_name" msprop:Generator_ColumnPropNameInTable="from_full_nameColumn" type="xs:string" minOccurs="0" />
              <xs:element name="to_full_name" msprop:Generator_UserColumnName="to_full_name" msprop:Generator_ColumnPropNameInRow="to_full_name" msprop:Generator_ColumnVarNameInTable="columnto_full_name" msprop:Generator_ColumnPropNameInTable="to_full_nameColumn" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CallDS" />
      <xs:field xpath="mstns:call_id" />
    </xs:unique>
  </xs:element>
</xs:schema>